We don't want our blocks to fall! Let's make them stay in the air.

  • Go to and drag out Sprite Gravity Off. Drop it inside the interval event, below the rectangle.

Remember, all commands inside an event should have a green block ···· in front of them.

  • Change the name in front of .set_gravity_off() to top_block.

Now we are giving this command to the sprite named top_block.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)